//
//  TalkBaseView.h
//  talkDemo
//
//  Created by telen on 15/4/20.
//  Copyright (c) 2015年 刘赞黄Telen. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "lyt.h"

@interface TalkBaseView : UIView

@property(nonatomic,assign)CGFloat ratio;

- (void)show;
- (void)unshow;

@property(assign) BOOL isShown;
@end

#pragma mark-

@interface TalkBlackBg : TalkBaseView

+ (TalkBlackBg*) talkBlackBgAlinToParent:(UIView*)view;

@end

#pragma mark-

@interface TalkDoubleLabel : UIView

- (instancetype)initWithFrame:(CGRect)frame MainText:(NSString *)str1 subText:(NSString *)str2 sepRatio:(float)sep;

- (instancetype)initWithFrame:(CGRect)frame MainText:(NSString *)str1 subText:(NSString *)str2 sepRatio:(float)sep orderNumSign:(NSString*)sign;

@property(nonatomic,readonly)UILabel* label_orderSign;
@property(nonatomic,readonly)UILabel* label_main;
@property(nonatomic,readonly)UILabel* label_sub;
@property(nonatomic,readonly)float ratio_sep;

- (void)setTexttextAlignment:(NSTextAlignment)textAlignment;

@end

#pragma mark-

@interface TalkTimeSliderView : TalkBaseView

@property(nonatomic,assign)NSTimeInterval countdown_sec;
@property(nonatomic,readonly)double progress; //0-1

- (instancetype)initWithFrame:(CGRect)frame color:(UIColor*)color_back color:(UIColor*)color_fore secondForm:(NSTimeInterval)sec_f  to:(NSTimeInterval)sec_t point:(NSArray*)points;


-(void)setForeColor:(UIColor*)color;
@end